<?php

namespace seecms\carousel;

use seecms\lib\module\ModuleConfig;

class CarouselModule extends ModuleConfig
{
    protected $auth = 'seecms';

    protected $name = '轮播图';

    protected $description = '轮播图模块,支持场景定义,有效期等';

    protected $category = 1;

    public function controller(): array
    {
        return [
            'carousel' => \seecms\carousel\controller\Carousel::class,
        ];
    }

    public function publish(): ?\seecms\lib\module\ModulePublish
    {
        return new CarouselPublish();
    }

    public function lang(): string
    {
        return __DIR__ . '/lang';
    }

    public function view(): string
    {
        return __DIR__ . '/view';
    }
}